home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / tex / lametex_.z / lametex_ / lametex / src / Token.h < prev   
Encoding:
C/C++ Source or Header  |  1992-09-02  |  764 b   |  27 lines

  1. /* Token.h
  2.  *
  3.  * The text to be parsed is broken into fundamental units called tokens.
  4.  * To parse the LaTeX files, the program interprets and handles these tokens.
  5.  *
  6.  * Copyright 1992 Jonathan Monsarrat. Permission given to freely distribute,
  7.  * edit and use as long as this copyright statement remains intact.
  8.  *
  9.  */
  10.  
  11. #include "LameTeX.h"
  12.  
  13. class Token {
  14.    char _text[MAXSTRING];
  15.    int _valid;
  16.    static int _comment;            // Is this token placed inside a comment?
  17.  
  18.  public:
  19.    Token();                        // Retrieve a new token from a file.
  20.  
  21.    void handle();                  // Deal with this token appropriately.
  22.    int isvalid();                  // Is this token valid?
  23.    void make_text(char *);
  24.    char *get_text();
  25.    int match(char *);
  26. };
  27.